<template >
    <h1>登录界面</h1>
    <router-link to="/main">main</router-link>
</template>
<script setup>
import {onBeforeRouteLeave} from 'vue-router'
onBeforeRouteLeave((to, from) => {console.log(to,from)})
</script>   
<style>
    
</style>